package py.edu.ucsa.sisale.util;


public class AppHelper
{

    public static String buildUrl(String host, String apiUrl)
    {
        StringBuffer st = new StringBuffer();
        if (host != null && !host.isEmpty() && apiUrl != null && !apiUrl.isEmpty())
        {
            st.append(host).append(apiUrl);
        }
        return st.toString();
    }

    public static String stripMillar(Object value)
    {
        String stringval = "";
        
        String[] split = value.toString().split("\\.");
        for(int index=0; index < split.length; index++)
        {
            stringval += split[index];
        }
        
        return stringval;
    }
    
}
